package com.dzq.shiro.controller;

public class Test{
    int num=0;
    public synchronized void run(){
        for(int i=0;i<10;i++){
            num++;
            System.out.println(Thread.currentThread().getName()+"："+num);
        }
    }

    public   void run2(){
        for(int i=0;i<10;i++){
            num++;
            System.out.println(Thread.currentThread().getName()+"："+num);
        }
    }


}
